Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.03 KB

File metadata and controls

31 lines (20 loc) · 1.03 KB

Incidental Coverage

Definition:

  • Is it enough to know that your test suite encounters every line of code? Or don’t you want to be sure that it exercises every line? If you simply encounter the line without asserting that it produces the correct results, are you any better off?

Code Example:

require File.dirname(__FILE__) + '/../test_helper'

class ProductsControllerTest < ActionController::TestCase
  def test_should_get_index
    get :index
  end

  # ... remaining tests omitted
end

References:

Quality attributes